<?php 
/**
 * @Name ActionLog 
 * @Title 日志验证器
 * @Extends app\common\validate\ValidateCore
 * @Modifiers public
 * @Auth Ghj<912524639@qq.com>
 * @Time 2018年08月09日 
 * @Site http:// www.thinkgms.com/
 */

namespace app\admin\validate;
use app\common\validate\ValidateCore ;

class ActionLog extends ValidateCore{
	/*========验证规则========*/
    protected $rule =   [

		'action_id' => [
			'require',
    	],
		'user_id' => [
			'require',
    	],
		'action_ip' => [
			'require',
    	],
		'remark' => [
			'require',
    	],
    ];
    
	/*========提示信息========*/
    protected $message  =   [
		'action_id.require'=>'[行为ID] 为 必填',
		'user_id.require'=>'[执行者ID] 为 必填',
		'action_ip.require'=>'[执行者IP] 为 必填',
		'remark.require'=>'[日志备注] 为 必填',
    ];
    
	/*========验证场景========*/
    protected $scene = [
		'add'=>['action_id','user_id','action_ip','remark',],
		'edit'=>['action_id','user_id','action_ip','remark',],
    ];

	/*========验证函数========*/
}
